<%@ Page Language="vb" AutoEventWireup="false" Codebehind="CompletionDateOwnerReport.aspx.vb" Inherits="MIMS_WRS.Web.CompletionDateOwnerReport"%>
<%@ Register TagPrefix="uc1" TagName="BOReportHeader" Src="../../UserControls/BOReportHeader.ascx" %>
<%@ Import namespace="MIMS_WRS.Web" %>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
	<head>
		<title>Completion Date Owner Report</title>
		<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<link href="../../report.css" type="text/css" rel="stylesheet">
		<script language="javascript">
		<!--
		function printDocument() {
			window.document.getElementById('ActionTop').style.display = "none";
			window.document.getElementById('ActionBottom').style.display = "none";
			window.print();
			window.document.getElementById('ActionTop').style.display = "block";
			window.document.getElementById('ActionBottom').style.display = "block";
		}
		//-->
		</script>
		<style>
			.OrderReport SPAN.highlight { COLOR: black! important }
			.OrderReport SPAN.highlight2 { COLOR: red }
		</style>
	</head>
	<body>
		<form id="Form1" method="post" runat="server">
			<uc1:boreportheader id="header" runat="server"></uc1:boreportheader>
			<div align="center" class="ReportTitle">Completion Date Owner Report</div>
			<asp:repeater id="rptList" runat="server" enableviewstate=False>
				<headertemplate>
					<table class="OrderReport" cellpadding="0" cellspacing="1" border="1">
						<thead>
							<tr>
								<th>
									Supp</th>
								<th>
									Product Code</th>
								<th>
									Owner</th>
								<th>BO No</th>
								<th>
									Description</th>
								<th>
									Color</th>
								<th>
									Total Qty Ordered</th>
								<th>
									Start Date</th>
								<th>
									Pack</th>
								<th>
									Pack Qty</th>
								<th>
									Total Qty Completed</th>								
								<th>
									Not Started</th>
								<th>
									Compeleted Date</th>
								<th>
									Qty Available</th>
								<th>
									Qty Shipped</th>
								<th>
									Qty Not Shipped</th>
								<th>
									Actual Stock</th>
								<th>
									Stock Date</th>
								<th>
									Stock Qty Inspected</th>
								<th>
									Picture</th>
							</tr>
						</thead>
						<tbody>
				</headertemplate>
				<itemtemplate>
					<tr>
						<td><%# Utilities.GetNormalText(DataBinder.Eval(Container.DataItem, "SupplierCode")) %></td>
						<td><%# DataBinder.Eval(Container.DataItem, "ProductCode")%>
						</td>
						<td>
							<%# GetOwnerText(DataBinder.Eval(Container.DataItem, "Owner"))%>
						</td>
						<td nowrap>
							<%# Utilities.GetNormalText(DataBinder.Eval(Container.DataItem, "BONo"))%>
						</td>
						<td>
							<%# DataBinder.Eval(Container.DataItem, "Description")%>
						</td>
						<td>
							<%# DataBinder.Eval(Container.DataItem, "Color")%>
						</td>
						<td align="right">
							<%# Utilities.GetNormalText(DataBinder.Eval(Container.DataItem, "[TotalQtyOrdered]")) %>
						</td>
						<td align="center"><%# Utilities.GetDateText(DataBinder.Eval(Container.DataItem, "[StartDate]")) %></td>
						<td><%# GetPackTypeText(DataBinder.Eval(Container.DataItem, "Pack")) %></td>
						<td align="right"><%# Utilities.GetNormalText(DataBinder.Eval(Container.DataItem, "PackQty")) %></td>
						<td align="right">
							<%# Utilities.GetNormalText(DataBinder.Eval(Container.DataItem, "[TotalQtyCompleted]")) %>
						</td>						
						<td align="right">
							<%# Utilities.GetNormalText(DataBinder.Eval(Container.DataItem, "[NotStarted]")) %>
						</td>
						<td align="center">
							<%# Utilities.GetDateText(DataBinder.Eval(Container.DataItem, "[EstimatedDate]")) %>
						</td>
						<td align="right">
							<%# DataBinder.Eval(Container.DataItem, "QuantityAvailable") %>
						</td>
						<td align="right">
							<%# DataBinder.Eval(Container.DataItem, "QuantityShipped") %>
						</td>
						<td align="right">
							<%# DataBinder.Eval(Container.DataItem, "QuantityNotShipped") %>
						</td>
						<td align="right">
							<%# DataBinder.Eval(Container.DataItem, "ActualStock") %>
						</td>
						<td align="center">
							<%# Utilities.GetDateText(DataBinder.Eval(Container.DataItem, "[StockLastCheckedDate]")) %>
						</td>
						<td align="right"><%# Utilities.GetNormalText(DataBinder.Eval(Container.DataItem, "StockLastCheckedQty")) %></td>
						<td><%# GetPictureHTML(DataBinder.Eval(Container.DataItem, "ProductCode")) %></td>
					</tr>
				</itemtemplate>
				<footertemplate>
					</tbody> </table>
				</footertemplate>
			</asp:repeater>
			<div id="ActionBottom">
				<br>
				<input type="button" value="Print" onclick="printDocument()">
			</div>
		</form>
	</body>
</html>
